package com.trt.contentcenter.sentineltest;

import com.sun.deploy.security.BlockedException;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TestControllerBlockHandlerClass {

    /**
     * 处理限流或者降级
     * @param a
     * @param e
     * @return
     */
    public static String block(String a, BlockedException e){
        log.warn("限流,或者降级了 block", e);
        return "限流,或者降级了 block";
    }
}
